import time
import requests
session = requests.session()
headers = {
    "Accept": "application/json, text/plain, */*",
    "Accept-Language": "zh-CN,zh;q=0.9,en;q=0.8,ar;q=0.7",
    "Cache-Control": "no-cache",
    "Connection": "keep-alive",
    "Content-Type": "application/x-www-form-urlencoded",
    "Origin": "https://login.dangdang.com",
    "Pragma": "no-cache",
    "Referer": "https://login.dangdang.com/",
    "Sec-Fetch-Dest": "empty",
    "Sec-Fetch-Mode": "cors",
    "Sec-Fetch-Site": "same-origin",
    "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/139.0.0.0 Safari/537.36 Edg/139.0.0.0",
    "sec-ch-ua": '"Not;A=Brand";v="99", "Microsoft Edge";v="139", "Chromium";v="139"',
    "sec-ch-ua-mobile": "?0",
    "sec-ch-ua-platform": '"Windows"',
}
url = "https://login.dangdang.com/api/customer/loginapi/getRankey"
data = {
    "permanent_id": "20250816190814112182788928046776591",
    "t": str(int(time.time() * 1000)),
}
res=session.post(url,headers=headers,data=data,proxies={"http": "http://127.0.0.1:7890",
                             "https": "http://127.0.0.1:7890"})
print(res.json())
